public class Main1700 {
    public static void main(String[] args) {
        for (int i=10;i<100;i++){
            int j=i%10;
            int k=i/10;
            if (j==2||k==2){
                System.out.println(i);
            }
        }
    }
}
